package com.slfx.function.permission.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author slfx
 * @since 2023-01-02
 */
@Getter
@Setter
@TableName("system_menu")
@ApiModel(value = "SystemMenu对象", description = "菜单权限表")
public class SystemMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("菜单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("权限标识")
    private String permission;

    @ApiModelProperty("菜单类型")
    private Integer type;

    @ApiModelProperty("显示顺序")
    private Integer sort;

    @ApiModelProperty("父菜单ID")
    private Long parentId;

    @ApiModelProperty("路由地址")
    private String path;

    @ApiModelProperty("菜单图标")
    private String icon;

    @ApiModelProperty("组件路径")
    private String component;

    @ApiModelProperty("菜单状态")
    private Integer status;

    @ApiModelProperty("是否可见")
    private Boolean visible;

    @ApiModelProperty("是否缓存")
    private Boolean keepAlive;

    @ApiModelProperty("创建者")
    private String creator;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    private String updater;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除")
    private Boolean deleted;


}
